package top.blackr.folivora.common.security.crud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.blackr.folivora.common.security.crud.model.entity.SysMenu;
import top.blackr.folivora.common.security.crud.model.vo.SysMenuVo;

import java.util.List;

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据角色id查询菜单信息
     *
     * @param roleIds 角色id
     * @return 菜单信息
     */
    List<SysMenuVo> getMenusByRoleIds(@Param("roleIds") List<Integer> roleIds);
}
